package com.zxx.flowerstore.entity.enums;

/**
 * @ClassName ResultEnum
 * @Author Admin
 * @Date 2021/3/15 22:16
 * @Description ResultEnum
 * @Version 1.0
 */
public enum ResultEnum {

    UNKONW_ERROR(-1, "未知错误"),
    SUCCESS(100, "成功！"),
    ERROR(101, "出问题了！没有找到数据！"),
    SEND_VERIFICATION_ERROR(105,"发送验证码失败！"),
    NO_AUTHORITY(102,"请求失败，请重新登陆！"),
    NO_NEW(103,",非最新数据，前台需要进行数据刷新！"),
    CODE_ERROR(106,"微信openid或者code错误"),
    OPEN_ID_ERROR(107,"微信用户未注册"),

    ACTIVE_ACCOUNTS(200,"一身份证对应多个有效手机号"),
    NOT_CUR_ACTIVE_ACCOUNT(201,"当前身份证有效账户不是当前登录手机号账户"),
    TO_APPEAL(202,"手机号+身份证存在，去申诉"),
    TO_REGISTER(203,"手机号+身份证不存在，去注册"),
    ;


    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
